package com.torry.replay.integration.result;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

@Data
public class SyncDragonResult {

    @ApiModelProperty(value = "日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate date;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "涨跌幅 单位 %")
    private Double rangePercent;

    @ApiModelProperty(value = "详情")
    private List<DragonDetail> details;

    @Data
    public static class DragonDetail {
        @ApiModelProperty(value = "席位id")
        private Long seatId;

        private Integer type;
        @ApiModelProperty(value = "买额 单位 万")
        private Double buyAmount;

        @ApiModelProperty(value = "卖额 单位万")
        private Double sellAmount;
    }
}
